package com.victor.entity.city;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 城市介绍
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "c_cityintroduce")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CityIntroduce {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "c_id", unique = true, nullable = false, length = 11)
	private Integer c_id;// 编号,

	@Column(name = "c_name", length = 50)
	private String c_name;// 城市名称

	@Column(name = "c_inprovince", length = 50)
	private String c_inprovince;// 所属省份

	@Column(name = "c_coreintroduce", length = 50)
	private String c_coreintroduce;// 核心介绍

	@Column(name = "c_voiceintroduce", length = 50)
	private String c_voiceintroduce;// 语音介绍

	@Column(name = "c_introduce", length = 50)
	private String c_introduce;// 详情内容

	@Transient
	private int praisenumber;// 点赞数

	@Transient
	private int commentnumber;// 评论数

	@Transient
	private int ifpraisecity; // 登录人是否点赞该城市

	@Transient
	private List<CityIntroducePhoto> cityIntroducePhotos;// 多张城市介绍图片

	@Transient
	private List<CityIntroduceComment> cityIntroduceComments;// 多个城市介绍评论
}
